//
//  NavBarTools.h
//  baodongPro
//
//  Created by feng on 16/8/19.
//  Copyright © 2016年 proper. All rights reserved.
//
typedef void(^rightBarButtonBlock)(UIBarButtonItem*rightBarbutton);

#import <Foundation/Foundation.h>

@interface NavBarTools : NSObject

/**
 *      @author 冯宝东
 *
 *      用静态方法初始化
 *
 *      @return 一个工具实例
 */
+(instancetype)defaultTools;

/**
 *      @author 冯宝东
 *
 *      给导航设置默认的颜色
 */
-(void)settingNavBarColorWithCurrentController:(UIViewController*)currentVC;



/************************************带有Block回调的参数********************************************/


/**
 *      @author 冯宝东
 *
 *      设置导航条的标题 和 右边按钮
 *
 *      @param title       标题
 *      @param rightTitle  右边按钮标题
 *      @param currentVC   当前视图控制器
 *      @param rightBlocks block回调
 */
-(void)settingNavBarTitle:(NSString*)title rightItem:(NSString*)rightTitle currentVC:(UIViewController*)currentVC rightItemBarAction:(rightBarButtonBlock)rightBlocks;


/**
 *      @author 冯宝东
 *
 *      设置导航条的标题 和 右边 N个 按钮
 *
 *      @param title       标题
 *      @param rightTitles  右边N个按钮标题
 *      @param currentVC   当前视图控制器
 *      @param rightBlocks block回调
 */
-(void)settingNavBarTitle:(NSString*)title rightItems:(NSArray*)rightTitles currentVC:(UIViewController*)currentVC rightItemBarAction:(rightBarButtonBlock)rightBlocks;











@end
